package top.leinx.fxnotes.stage;

/**
 * @Author : xiaolei
 * @DateTime: 2021/3/11 7:26 下午
 */

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

public class StageStyleExample extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("窗口样式的例子");

        // primaryStage.setScene(new Scene(new Label("样式"), 300, 200));
        primaryStage.initStyle(StageStyle.DECORATED);
        // primaryStage.initStyle(StageStyle.UNDECORATED);
        // primaryStage.initStyle(StageStyle.TRANSPARENT); // 透明无内容，看不到窗口
        // primaryStage.initStyle(StageStyle.UNIFIED);
        // primaryStage.initStyle(StageStyle.UTILITY);

        primaryStage.setFullScreen(true);
        primaryStage.show();
    }
}
